<template>
  <div class="pageCard">
    <div class="borderBox">
      <div class="userBox">
        <div class="top">
          <div class="userPic">
            <div class="imgBox">
              <img src="../../../assets/img/pic.jpg" alt="" />
              <div class="userLever">78</div>
            </div>
            <div class="lever">838416/990000</div>
          </div>
          <!-- <div class="topRight">
            <div class="name">未婚妻</div>
            <el-button>切换</el-button>
          </div> -->
        </div>
        <div class="list">
          <el-descriptions title="" :column="2">
            <el-descriptions-item label="姓 名">未婚妻</el-descriptions-item>
            <el-descriptions-item label="主 线 进 度"
              >30-21</el-descriptions-item
            >
            <el-descriptions-item label="入 职 日 期"
              >2023-11-10</el-descriptions-item
            >
            <el-descriptions-item label="灵 犀 收 集">
              220
            </el-descriptions-item>
            <el-descriptions-item label="职 称"
              >中级设计师</el-descriptions-item
            >
            <el-descriptions-item label="生 日">11-23</el-descriptions-item>
          </el-descriptions>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "myHome",
  data() {
    return {};
  },
};
</script>
<style lang="scss" scoped>
.pageCard {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  border-radius: 8px;
  background: url(../../../assets/img/banner9.jpg);
  background-color: rgba($color: #ffffff, $alpha: 0.3);

  .borderBox {
    border: 2px solid #f0d286;
    margin: 15px;
    width: calc(100% - 30px);
    height: 300px;
    padding: 5px;
    border-radius: 8px;
  }

  .userBox {
    position: relative;
    padding: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    background-color: rgba($color: #ffffff, $alpha: 0.8);
    // background-color: #fff;
    border-radius: 8px;

    .top {
      display: flex;
      align-items: center;
      justify-content: flex-end;

      .userPic {
        position: absolute;
        top: -45px;
        left: 30px;
        // width: 95px;
        // height: 125px;

        .imgBox {
          width: 105px;
          height: 105px;
          border-radius: 50%;
          overflow: hidden;

          img {
            width: 100%;
            height: 100%;
          }

          .userLever {
            background-color: #ebdefa;
            border-radius: 50%;
            padding: 2px;
            font-size: 14px;
            position: absolute;
            left: 0;
            top: 80px;
          }
        }

        .lever {
          font-size: 12px;
          text-decoration: underline;
        }
      }

      .topRight {
        display: flex;
        justify-content: space-between;
      }
    }

    .list {
      margin-top: 90px;

      ::v-deep .el-descriptions .el-descriptions__body {
        background: none;

        .el-descriptions-item__label {
          width: 200px;
          justify-content: flex-end;
        }
      }
    }
  }
}
</style>
